<!DOCTYPE html>
<html lang="zh-CN-Hans">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>信息管理</title>
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/layui/common.css">
    <script type="text/javascript" src="/static/Easyui/jquery.min.js"></script>
    <style type="text/css">
        @keyframes animate_dots {
            0% {
                opacity: 1
            }
            to {
                opacity: 0
            }
        }

        @-webkit-keyframes animate_dots {
            0% {
                opacity: 1
            }
            to {
                opacity: 0
            }
        }

        .dot0, .dot1 {
            animation: animate_dots .9s infinite;
            -moz-animation: animate_dots .9s infinite;
            -webkit-animation: animate_dots .9s infinite;
            -o-animation: animate_dots .9s infinite
        }

        .dot1 {
            animation-delay: .2s;
            -webkit-animation-delay: .2s
        }

        .dot2 {
            animation: animate_dots .9s infinite;
            -moz-animation: animate_dots .9s infinite;
            -webkit-animation: animate_dots .9s infinite;
            -o-animation: animate_dots .9s infinite;
            animation-delay: .4s;
            -webkit-animation-delay: .4s
        }

        .dots_item {
            display: inline-block;
            margin-right: 5px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #4886ff
        }

        .verify-icon {
            position: absolute;
            width: 100%;
            margin-top: 70px;
            text-align: center
        }

        .t-mask {
            width: 100%;
            height: 100%;
            position: fixed;
            _position: absolute;
            left: 0;
            top: 0;
            background: #000;
            opacity: .5;
            filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
            z-index: 2000000000
        }</style>
    <style>
        .rheader .rlogo a, .step_list li em, .zcys_con dl dt, .reg_ok dl dt {
            background: url(/imgs/regico.png) no-repeat;
        }

        em {
            font-style: normal;
        }

        .register_steps {
            padding-top: 50px;
        }

        .reg_steps_b {
            position: relative;
            height: 60px;
            width: 990px;
            margin: 50px auto;
            overflow: hidden;
        }

        .step_list {
            position: absolute;
            Z-index: 9;
            width: 840px;
            top: 0px;
            left: 75px;
        }

        .step_list li {
            float: left;
            width: 170px;
            margin-left: 40px;
            _display: inline;
        }

        .step_list li em {
            display: block;
            height: 22px;
            width: 22px;
            line-height: 22px;
            background-position: 0 -33px;
            margin: 0 auto;
            text-align: center;
            color: #fff;
        }

        .step_list li p {
            line-height: 40px;
            color: #919191;
            text-align: center;
            font-size: 14px;
        }

        .step_list li.current em {
            background-position: 0 -11px;
            width: 170px;
        }

        .step_list li.current p {
            color: #fe7342;
        }

        .reg_steps_b i {
            display: block;
            width: 100%;
            height: 2px;
            background: #e4e4e4;
            position: absolute;
            left: 0px;
            top: 10px;
            z-index: 1;
            overflow: hidden;
        }

        .spw-cont .spw-tit {
            padding: 0 40px;
            height: 50px;
            line-height: 50px;
            border-bottom: 1px solid #f2f2f2;
        }

        .spw-cont .spw-tit h1 {
            font-size: 18px;
            color: #555;
            font-weight: bold;
        }

        .spw-cont .spw-mian {
            width: 420px;
            margin: 50px auto 0;
            position: relative;
        }

        .spw-cont .spw-mian .spw-icon {
            width: 80px;
            height: 80px;
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            background: url(/static/images/pprompt-icon.png) no-repeat;
        }

        .spw-cont .spw-mian .spw-info {
            padding-left: 100px;
        }

        .spw-cont .spw-mian .spw-info h2 {
            font-size: 24px;
            font-weight: bold;
        }

        .spw-cont .spw-mian .spw-info .spw-txt {
            font-size: 14px;
            color: #8c8c8c;
            overflow: hidden;
        }

        .spw-cont .spw-mian .spw-info .spw-txt p {
            margin: 12px 0 8px;
        }

        .spw-cont .spw-mian .spw-info .spw-txt span {
            display: block;
            line-height: 24px;
        }

        .spw-cont .spw-mian .spw-info .spw-txt em {
            color: #333;
        }

        .spw-cont .spw-mian .spw-info .spw-txt .tag {
            border: 1px solid #d2d2d2;
            background-color: #f5f9fc;
            height: 23px;
            padding: 0 5px;
            color: #555;
            display: block;
            float: left;
            margin: 0 7px 5px 0;
        }

        .spw-cont .spw-mian .spw-info .spw-btn {
            margin-top: 12px;
        }

        .spw-cont .spw-mian .spw-info .spw-btn .btn {
            width: 138px;
            height: 38px;
            padding: 0;
            text-align: center;
            line-height: 38px;
            font-size: 14px;
        }

        .spw-cont .spw-success .spw-icon {
            background-position: 0 0;
        }

        .spw-cont .spw-success h2 {
            color: #4bc696;
        }

        .spw-cont .spw-fail .spw-icon {
            background-position: -85px 0;
        }

        .spw-cont .spw-fail h2 {
            color: #24be00;
        }

        .spw-cont .spw-wait .spw-icon {
            background-position: -169px 0;
        }

        .spw-cont .spw-wait h2 {
            color: #ff8f23;
        }

        .links {
            padding: 5px;
            color: #1b8cf2;
        }
    </style>
</head>
<body class="main">

<{include file="public/header.html"}>

<div id="main" class="layui-main" v-cloak>
    <div class="layout-main clearfix">

        <{include file="public/sidebar.html"}>


        <div class="my-content">
            <div class="wrap">
                <div class="my-nav">
                    <span class="title">信息管理</span>
                </div>

                <div class="layui-tab layui-tab-brief">


                    <ul class="layui-tab-title">
                        <li class="layui-this">显示中</li>
                        <li>待审核</li>
                        <li>已删除</li>
                        <li>已推荐</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="68%">
                                    <col width="12%">
                                    <col width="20%">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>标题</th>
                                    <th>审核状态</th>
                                    <th style="text-align:center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="(vo, index) in list1">
                                    <td>
                                        <p>{{vo.title}}</p>
                                        <p>日期：{{vo.created_at}}</p>
                                    </td>
                                    <td class="center">
                                        <p></p>
                                        <p>显示中</p>
                                    </td>
                                    <td class="center">
                                        <a class="links" :href="vo.link" target="_blank" title="查看">查看</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="pager">
                                <div id="page1">
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="68%">
                                    <col width="12%">
                                    <col width="20%">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>标题</th>
                                    <th>审核状态</th>
                                    <th style="text-align:center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="(vo, index) in list2">
                                    <td>
                                        <p>{{vo.title}}</p>
                                        <p>日期：{{vo.created_at}}</p>
                                    </td>
                                    <td class="center">
                                        <p></p>
                                        <p>待审核</p>
                                    </td>
                                    <td class="center">
                                        <a class="links" :href="'/members/preview/id/'+vo.id" target="_blank" title="预览">预览</a>
                                        <a class="links" :href="'/members/issue/id/'+vo.id" title="编辑">编辑</a>
                                        <a class="links" href="javascript:void(0);" @click="rm(vo.id, 'list2', index)" title="删除">删除</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="pager">
                                <div id="page2">
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="68%">
                                    <col width="12%">
                                    <col width="20%">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>标题</th>
                                    <th>审核状态</th>
                                    <th style="text-align:center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="(vo, index) in list3">
                                    <td>
                                        <p>{{vo.title}}</p>
                                        <p>日期：{{vo.created_at}}</p>
                                    </td>
                                    <td class="center">
                                        <p></p>
                                        <p>已删除</p>
                                    </td>
                                    <td class="center">
                                        <a class="links" :href="'/members/issue/id/'+vo.id" title="编辑">编辑</a>
                                        <a class="links" href="javascript:void(0);" @click="rm(vo.id, 'list2', index)" title="删除">删除</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="pager">
                                <div id="page3">
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="68%">
                                    <col width="12%">
                                    <col width="20%">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>标题</th>
                                    <th>审核状态</th>
                                    <th style="text-align:center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="(vo, index) in list4">
                                    <td>
                                        <p>{{vo.title}}</p>
                                        <p>日期：{{vo.created_at}}</p>
                                    </td>
                                    <td>
                                        <p></p>
                                        <p>已推荐</p>
                                    </td>
                                    <td class="center">
                                        <a class="links" :href="vo.link" target="_blank" title="查看">查看</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="pager">
                                <div id="page4">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<{include file="public/footer.html"}>

<script>
    var vm = new Vue({
        el: '#main',
        data: {
            params1: {
                page: 1,
                size: 10,
                status: 1
            },
            params2: {
                page: 1,
                size: 10,
                status: 0
            },
            params3: {
                page: 1,
                size: 10,
                status: 3
            },
            params4: {
                page: 1,
                size: 10,
                status: 2
            },
            list1: [],
            list2: [],
            list3: [],
            list4: [],
        },
        methods: {
            init1() {
                ajax(Lists_url, vm.params1, false, true).then((data) => {
                    if (data.ret === 0) {
                        vm.list1 = data.data.rows;
                        layui.laypage.render({
                            elem: 'page1',
                            curr: vm.params1.page,
                            count: data.data.total,
                            jump: function (obj, first) {
                                if (!first) {
                                    vm.params1.page = obj.curr;
                                    vm.init();
                                }
                            }
                        });
                    }
                });
            },
            init2() {
                ajax(Lists_url, vm.params2, false, true).then((data) => {
                    if (data.ret === 0) {
                        vm.list2 = data.data.rows;
                        layui.laypage.render({
                            elem: 'page2',
                            curr: vm.params2.page,
                            count: data.data.total,
                            jump: function (obj, first) {
                                if (!first) {
                                    vm.params2.page = obj.curr;
                                    vm.init();
                                }
                            }
                        });
                    }
                });
            },
            init3() {
                ajax(Lists_url, vm.params3, false, true).then((data) => {
                    if (data.ret === 0) {
                        vm.list3 = data.data.rows;
                        layui.laypage.render({
                            elem: 'page3',
                            curr: vm.params3.page,
                            count: data.data.total,
                            jump: function (obj, first) {
                                if (!first) {
                                    vm.params3.page = obj.curr;
                                    vm.init();
                                }
                            }
                        });
                    }
                });
            },
            init4() {
                ajax(Lists_url, vm.params4, false, true).then((data) => {
                    if (data.ret === 0) {
                        vm.list4 = data.data.rows;
                        layui.laypage.render({
                            elem: 'page4',
                            curr: vm.params4.page,
                            count: data.data.total,
                            jump: function (obj, first) {
                                if (!first) {
                                    vm.params4.page = obj.curr;
                                    vm.init();
                                }
                            }
                        });
                    }
                });
            },
            rm(id, tab, index){
                layer.confirm('is not?', function(index){
                    ajax(InfoDel_url, {id:id}, false, true).then((data) => {
                        if (data.ret === 0) {
                            vm[tab].splice(index, 1);
                        }
                    });
                    layer.close(index);
                });
            },
        }
    });
    $(function () {
        setTimeout(() => {
            vm.init1();
            vm.init2();
            vm.init3();
            vm.init4();
        }, 200);
    });
</script>
</body>
</html>
